package com.feature.learn.string;

/**
 * Copyright (C), 2015-2021, 顺丰科技有限公司
 *
 * @author 01390942
 * @Description
 * @create 2021/7/15
 * @since 1.0.0
 */
public class StringInternTest {

    public static void main(String[] args) {
        String st1 = "abc";
        String st2 = new String("abc");
        String st3 = st2.intern();

        System.out.println(st1 == st2);
        System.out.println(st2 == st3);
        System.out.println(st1 == st3);

    }
}